package me.a_littlesquid.origin.utils;

import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;

import java.io.File;

import static org.bukkit.potion.PotionEffectType.*;
import static org.bukkit.potion.PotionEffectType.DAMAGE_RESISTANCE;

public class Descripition {
    public static void show(Player player, FileConfiguration data, File filedata){
        player.sendMessage(ChatColor.GREEN+"-------------");
        if(check.hasorigin(player, data, filedata)){
            String playername=player.getDisplayName();
            String origin=data.getString("playerlist."+playername+".origin");
            switch (origin) {
                case "ck":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"刺客");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"拥有更强大的肌肉，但更加脆弱，不会饥饿");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"力量I,速度II，急迫II，饱和V");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"10");
                    break;
                case "zt":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"战坦");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"拥有更强大的肌肉，行动十分迟缓");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"抗性I，迟缓I，饥饿I");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"40");
                    break;
                case "zzgw":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"建筑怪物");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"拥有无限的建筑方块");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"速度I,虚弱I");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"20");
                    break;
                case "xt":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"血徒");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"出卖自己的血量从而获得更强大的力量");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"生命恢复II，急迫I，速度I，力量I");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"16");
                    break;
                case "qs":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"骑士");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"速度更快，力量更大，但无法出击");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"力量I,速度I,抗性I，缓降I");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"16");
                    break;
                case "my":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"梦魇");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"无限瞬移，但生命值极低");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"速度I，抗性II");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"10");
                    break;
                case "zs":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"壮士");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"比常人更加强壮");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"抗性I");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"20");
                    break;
                case "pt":
                    player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"普通人");
                    player.sendMessage(ChatColor.AQUA+"介绍:"+ChatColor.WHITE+"普普通通。。。");
                    player.sendMessage(ChatColor.AQUA+"BUFF:"+ChatColor.WHITE+"无");
                    player.sendMessage(ChatColor.AQUA+"生命值:"+ChatColor.WHITE+"20");
                    break;
            }
        }else{
            player.sendMessage(ChatColor.AQUA+"您的起源为:"+ChatColor.GOLD+"无");
        }
    }
}
